LIBS += v8

v8-lib = libv8.so

define v8.config
cd $(DST); svn checkout http://gyp.googlecode.com/svn/trunk build/gyp --revision 1501
endef

define v8.build
cd $(DST); make $(ARCH).release -j$(JOBS) library=shared snapshot=off strictaliasing=off
endef

define v8.install
cd $(DST); \
install -c -m 644 include/v8.h include/v8stdint.h $(PREFIX)/include; \
install -c -m 644 out/$(ARCH).release/lib.target/$(v8-lib) $(PREFIX)/lib
endef

define v8.uninstall
rm $(PREFIX)/include/v8*.h; \
rm $(PREFIX)/lib/$(v8-lib)
endef
